<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
	<%@ include file="/static/include/common.inc"%>
    <meta charset="UTF-8">
    <title>新闻详细</title>
    <link rel="stylesheet" href="static/common/css/bootstrap.min.css">
    <link rel="stylesheet" href="static/common/css/style.css">
    <link rel="stylesheet" href="static/css/qzsmk.css">
    <link rel="stylesheet" href="static/common/css/myPage.css">
    <link rel="stylesheet" href="static/css/newslb.css">
    <link rel="stylesheet" href="static/css/news-detailed.css">
    <link rel="stylesheet" href="static/common/css/jMenu.jquery.css">
    <script src="static/common/js/jquery.min.js"></script>
</head>
<body>
<div class="all">
    <%@include file="/static/include/front/front-header.inc" %>
	<%@include file="/static/include/front/front-dhl.inc" %>
    <div class="news-nva"><img src="static/img/news-titl.jpg" alt=""></div>
    <div class="news-wz">当前位置：
        <span><a href="#">首页</a></span>
        >
         <span>市民卡动态</a></span>
        >
        <c:if test="${article.articleType==1 }">
	        <span><a href="front/article/articlePage/1.do">市民卡新闻</a></span>
        </c:if>
        <c:if test="${article.articleType==2 }">
        	<span><a href="front/article/articlePage/2.do">市民卡公告</a></span>
        </c:if>
        >
        <span>${article.articleName }</span>
    </div>
    <div class="news-hr"><hr></div>
    <div class="deta-title">${article.articleName }</div>
    <div class="deta-titletime">发布时间：<span style="margin-right: 10px;"><fmt:formatDate value="${article.releaseTime }" pattern="yyyy-MM-dd"/></span>阅读次数：<span>${article.readNum }</span>次</div>
    <div class="deta-nr">${article.content }</div>
    <div class="news-hrdiv"><hr></div>
    <div class="shang">上一篇：
    	<c:choose>
    		<c:when test="${not empty aheadArticle }">
		    	<span class="shang-span" onclick="getArticleDetail('${aheadArticle.articleId}','${aheadArticle.articleType }')">${aheadArticle.articleName }</span>
    		</c:when>
    		<c:otherwise>
    			<span class="shang-span" onclick="getArticleDetail('${article.articleId}','${article.articleType }')">无</span>
    		</c:otherwise>
    	</c:choose>
    </div>
    <div class="xia">下一篇：
    	<c:choose>
    		<c:when test="${not empty afterArticle }">
		    	<span class="xia-span" onclick="getArticleDetail('${afterArticle.articleId}','${afterArticle.articleType }')">${afterArticle.articleName }</span>
    		</c:when>
    		<c:otherwise>
    			<span class="xia-span" onclick="getArticleDetail('${article.articleId}','${article.articleType }')">无</span>
    		</c:otherwise>
    	</c:choose>
    </div>
    <%@include file="/static/include/front/front-footer.inc" %>
</div>
<script src="static/common/js/jquery-ui.js"></script>
<script src="static/common/js/jMenu.jquery.js"></script>
<script src="static/common/js/bootstrap.min.js"></script>
<script src="static/js/qzsmk.js"></script>
<script type="text/javascript">
	$(function(){
		
	})
	function getArticleDetail(articleId,articleType){
		var detailUrl = "front/article/articleDetail/" +articleId+".do?articleType="+articleType;
		window.location.href= detailUrl;
		return false;
	}
</script>
</body>
</html>